﻿#ifndef HANLDDATAITEM_H
#define HANLDDATAITEM_H

#include <QObject>

#include "./hanlddata.h"

//Q_INVOKABLE
class HanldDataitem : public QObject
{
    Q_OBJECT
public:
    explicit HanldDataitem(QObject *parent = NULL);
    virtual ~HanldDataitem();
    Q_INVOKABLE  bool initHandl();

    Q_INVOKABLE int readData();

    Q_INVOKABLE int readCurrentData();
    Q_INVOKABLE int readHeartData();
    Q_INVOKABLE int readMcuData();
    Q_INVOKABLE int readMcuClearData();
    Q_INVOKABLE int writeData(int type,int lens);
    Q_INVOKABLE  void setCurrentValue(QString nums);
    Q_INVOKABLE  int getCurrentValue();

signals:
    void sigCurrentData(int nums);
    void sigRemoveDevice();
    void sigAddDevice();
    void sigAddCurrentData(int nums);
public slots:
};

#endif // HANLDDATAITEM_H
